package com.harmontronics.hanma.paas.paas.dto.input;

import com.harmontronics.hanma.paas.paas.consts.EnvEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 第三方服务配置信息
 *
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-05-17 11:31:06
 */
@Data
public class HttpServiceSettingInput {

    /**
     * 环境
     */
    @ApiModelProperty(value = "环境")
    @NotNull(message = "hm.pass.field_non_nullable")
    private EnvEnum env;
    /**
     * 配置信息
     */
    @ApiModelProperty(value = "配置信息")
    @NotNull(message = "hm.pass.field_non_nullable")
    private String json;

    @ApiModelProperty(value = "服务器地址")
    @NotNull(message = "hm.pass.field_non_nullable")
    private String serverUrl;

    @ApiModelProperty(value = "token获取地址")
    private String tokenUrl;
    @ApiModelProperty(value = "token取值")
    private String tokenPath;
    @ApiModelProperty(value = "token过期时长")
    private Long tokenExpire;
}
